home *** CD-ROM | disk | FTP | other *** search
- package com.ms.dxmedia;
-
- import com.ms.com.ComFailException;
- import com.ms.com.Dispatch;
-
- public class PropertyDispatcher implements BvrCallback {
- protected Behavior _bvr;
- protected Object _control;
- protected String _propName;
-
- public void setControl(Object var1) {
- this._control = var1;
- }
-
- public Behavior getBvr() {
- return this._bvr;
- }
-
- public PropertyDispatcher(Behavior var1) {
- this._bvr = var1.bvrHook(this);
- this._control = null;
- this._propName = null;
- }
-
- public void setPropertyName(String var1) {
- this._propName = var1;
- }
-
- public void detach() {
- this._control = null;
- this._propName = null;
- }
-
- public Behavior notify(int var1, boolean var2, double var3, double var5, double var7, Behavior var9, Behavior var10) {
- if (!var2 && this._propName != null && this._control != null) {
- try {
- Object var11 = var9.extract();
- Dispatch.put(this._control, this._propName, var11);
- } catch (Exception var13) {
- System.out.println("Caught an exception in prop set " + var13);
- throw new ComFailException(-2147467259, ((Throwable)var13).getMessage());
- }
- }
-
- return null;
- }
- }
-